package com.jinsi.mapper.tang;

import com.jinsi.pojo.Commodity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 审核商品列表
 * @author 唐文博
 * @Date 2022-08-15
 */
@Mapper
public interface CommodityReviewMapper {
    /**
     * 筛选搜索查询,根据商品名称、商品分类、上传人查询
     * @param commodityName
     * @param classifyTitle
     * @param classifyId
     * @param userName
     * @param commodityIsdel
     * @return
     */
    public List<Commodity> getCommodityReviewSee(String commodityName, String classifyTitle,
                                                Integer classifyId, String userName,
                                                Integer commodityIsdel);

    /**
     * 修改审核状态 1为已审核
     * @param commodityId
     * @param commodityExamine
     * @return
     */
    public int deleteCommodityReview(Integer commodityId,Integer commodityExamine);

    /**
     * 修改审核状态 驳回 为0 未通过 reject
     * @param commodityId
     * @param commodityExamine
     * @return
     */
    public int deleteReject(Integer commodityId,Integer commodityExamine);

    /**
     * 查看审核通过的商品 1
     * @param commodityExamine
     * @param commodityIsdel
     * @return
     */
    public List<Commodity> getCommodityReviewExamineNormal(Integer commodityExamine,Integer commodityIsdel);

}
